//
//  PointsModel.m
//  RunningMan
//
//  Created by dllo on 16/5/26.
//  Copyright © 2016年 JohnnyB. All rights reserved.
//

#import "PointsModel.h"

@implementation PointsModel

-(instancetype)initWithCoder:(NSCoder *)aDecoder{
    
    self = [super init];
    if (self) {
        self.latitude = [ aDecoder decodeDoubleForKey:@"latitude"];
        self.longitude = [aDecoder decodeDoubleForKey:@"longitude"];
    }
    return self;
}


-(void)encodeWithCoder:(NSCoder *)aCoder{
    
    [aCoder encodeDouble:self.latitude forKey:@"latitude"];
    [aCoder encodeDouble:self.longitude forKey:@"longitude"];
    
}

@end
